<template>
	<view class="evaluation-content">
		<image class="user-icon" mode="widthFix" :src="datasource.avatar"></image>
		<view class="evaluation-mes">
			<view class="evaluation-mes-top">
				<text class="user-name">{{datasource.nickname}}</text>
				<text class="time">{{datasource.comment_time || "刚刚"}}</text>
			</view>
			<text class="evaluation-mes-title">
				{{datasource.content}}
			</text>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			datasource:Object,
			default:()=>{
				return {};
			}
		}
	}
</script>

<style lang="scss">
	.evaluation-content{
		width: 100%;
		padding: 0 50upx;
		border-top: 1px solid#F8F8F8;
		display: flex;
		justify-content: space-between;
		.user-icon{
			width: 112upx;
			height: 112upx;
			border-radius: 50%;
			margin-right: 20upx;
			margin-top: 32upx;
		}
		.evaluation-mes{
			display: flex;
			flex-direction: column;
			flex: 1;
			margin-top: 32upx;
			.evaluation-mes-top{
				display: flex;
				align-content: center;
				justify-content: space-between;
				.user-name{
					color: #333333;
					font-size: 28upx;
					font-weight: 500;
				}
				.time{
					color: #999999;
					font-size: 24upx;
				}
			}
			.evaluation-mes-title{
				margin-top: 16upx;
				color: #666;
				font-size: 28upx;
				line-height: 40upx;
				margin-bottom: 48upx;
			}
		}
		
	}
</style>
